package com.ltd.zglmvptest.model;

import com.ltd.zglmvptest.R;
import com.ltd.zglmvptest.base.BaseModel;
import com.ltd.zglmvptest.bean.AvatarBean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by chinalin on 2017/5/2.
 */

public class AvatarListModel implements BaseModel{
    @Override
    public void loadData(ResultCallBack callBack) {
        List<AvatarBean> list = new ArrayList<>();
        list.add(new AvatarBean(R.mipmap.image_1,"XiaoMing1"));
        list.add(new AvatarBean(R.mipmap.image_2,"XiaoMing2"));
        list.add(new AvatarBean(R.mipmap.image_3,"XiaoMing3"));
        list.add(new AvatarBean(R.mipmap.image_4,"XiaoMing4"));
        list.add(new AvatarBean(R.mipmap.image_5,"XiaoMing5"));
        list.add(new AvatarBean(R.mipmap.image_6,"XiaoMing6"));
        list.add(new AvatarBean(R.mipmap.image_7,"XiaoMing7"));
        list.add(new AvatarBean(R.mipmap.image_8,"XiaoMing8"));
        list.add(new AvatarBean(R.mipmap.image_9,"XiaoMing9"));
        list.add(new AvatarBean(R.mipmap.image_10,"XiaoMing10"));
        list.add(new AvatarBean(R.mipmap.image_11,"XiaoMing11"));
        list.add(new AvatarBean(R.mipmap.image_12,"XiaoMing12"));
        //加载完成数据后回调处理
        callBack.onResult(list);
    }
}
